package ysq.xyg.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 *返现登记表
 *
 * @author shengQiang yu
 * @date 2019-03-05 15:15
 */
@Data
@NoArgsConstructor
@Table(name = "xyg_cash_back")
public class CashBack implements Serializable {

    @Id
    private String id;
    /**
     *客服id
     */
    @Column(name = "custom_id")
    private String customId;
    /**
     * 旺旺号
     */
    @Excel(name = "旺旺号",orderNum = "2")
    @Column(name = "wang_wang")
    private String wangWang;
    /**
     * 订单编号
     */
    @Excel(name = "订单编号",orderNum = "3")
    @Column(name = "order_num")
    private String orderNum;
    /**
     * 微信号
     */
    @Excel(name = "微信号",orderNum = "4")
    @Column(name = "wechat")
    private String weChat;

    /**
     *返款金额
     */
    @Excel(name = "返款金额",orderNum = "5")
    private double money;

    /**
     * 返款原因
     */
    @Excel(name = "返款原因",orderNum = "6")
    private String reason;
    /**
     * 微信收款码（需要上传图片）
     */
    private String skm;
    /**
     *返款日期
     */
    @Excel(name = "返款日期", format = "yyyy-MM-dd HH:mm:ss",orderNum = "7")
    @Column(name = "return_time")
    private Date returnTime;
    /**
     *返款银行
     */
    @Excel(name = "返款银行",orderNum = "8")
    @Column(name = "return_bank")
    private String returnBank;
    /**
     * 备注
     */
    @Excel(name = "备注",orderNum = "9")
    @Column(name = "remark")
    private String remark;
    /**
     * 月份
     */
    @Excel(name = "月份",orderNum = "10")
    private String month;
    /**
     * 是否返款:否,是
     */
    @Excel(name = "是否返款",orderNum = "6")
    @Column(name = "back_money")
    private String backMoney;
    /**
     * 删除标志：Y、已删除，N、未删除
     */
    @Column(name = "remove_tag")
    private String removeTag;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss",orderNum = "11")
    @Column(name = "create_time")
    private Date createTime;
    /**
     * 创建时间
     */
    @Excel(name = "修改时间", format = "yyyy-MM-dd HH:mm:ss",orderNum = "14")
    @Column(name = "update_time")
    private Date updateTime;
    /**
     *客服名称
     */
    @Transient
    @Excel(name = "客服名称",orderNum = "1")
    private String customName;

    @Transient
    private String returnDate;
    @Transient
    private String startDate;

    @Transient
    private String endDate;
    public CashBack(String wangWang, String month,String removeTag) {
        this.wangWang = wangWang;
        this.month = month;
        this.removeTag = removeTag;
    }
}